Warning (2): getimagesize(http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad request
[APP/Controller/CropsController.php, line 214]Code Context $this->response->type($file_type);
//
$original_image_size = getimagesize($file_name);
$id = 'Protección de obras audiovisuales'
$crop_height = null
$crop_width = null
$file_name = 'http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg'
$file_type = 'jpg'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad request',
(int) 1 => 'content-length: 90',
(int) 2 => 'cache-control: no-cache',
(int) 3 => 'content-type: text/html',
(int) 4 => 'connection: close'
)
getimagesize - [internal], line ??
CropsController::foto_admin() - APP/Controller/CropsController.php, line 214
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (2): imagecreatefromjpeg(http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg) [function.imagecreatefromjpeg]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad request
[APP/Controller/CropsController.php, line 220]Code Context if($file_type=='jpg')
{
$original_image_gd = imagecreatefromjpeg($file_name);
$id = 'Protección de obras audiovisuales'
$crop_height = null
$crop_width = null
$file_name = 'http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg'
$file_type = 'jpg'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad request',
(int) 1 => 'content-length: 90',
(int) 2 => 'cache-control: no-cache',
(int) 3 => 'content-type: text/html',
(int) 4 => 'connection: close'
)
$original_image_size = false
$original_width = null
$original_height = null
imagecreatefromjpeg - [internal], line ??
CropsController::foto_admin() - APP/Controller/CropsController.php, line 220
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (2): imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions [APP/Controller/CropsController.php, line 232]Code Context }
//
$cropped_image_gd = imagecreatetruecolor($crop_width, $crop_height);
$id = 'Protección de obras audiovisuales'
$crop_height = null
$crop_width = null
$file_name = 'http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg'
$file_type = 'jpg'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad request',
(int) 1 => 'content-length: 90',
(int) 2 => 'cache-control: no-cache',
(int) 3 => 'content-type: text/html',
(int) 4 => 'connection: close'
)
$original_image_size = false
$original_width = null
$original_height = null
$original_image_gd = false
imagecreatetruecolor - [internal], line ??
CropsController::foto_admin() - APP/Controller/CropsController.php, line 232
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (2): Division by zero [APP/Controller/CropsController.php, line 233]Code Context //
$cropped_image_gd = imagecreatetruecolor($crop_width, $crop_height);
$wm = $original_width /$crop_width;
$id = 'Protección de obras audiovisuales'
$crop_height = null
$crop_width = null
$file_name = 'http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg'
$file_type = 'jpg'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad request',
(int) 1 => 'content-length: 90',
(int) 2 => 'cache-control: no-cache',
(int) 3 => 'content-type: text/html',
(int) 4 => 'connection: close'
)
$original_image_size = false
$original_width = null
$original_height = null
$original_image_gd = false
$cropped_image_gd = false
CropsController::foto_admin() - APP/Controller/CropsController.php, line 233
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (2): Division by zero [APP/Controller/CropsController.php, line 234]Code Context $cropped_image_gd = imagecreatetruecolor($crop_width, $crop_height);
$wm = $original_width /$crop_width;
$hm = $original_height /$crop_height;
$id = 'Protección de obras audiovisuales'
$crop_height = null
$crop_width = null
$file_name = 'http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg'
$file_type = 'jpg'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad request',
(int) 1 => 'content-length: 90',
(int) 2 => 'cache-control: no-cache',
(int) 3 => 'content-type: text/html',
(int) 4 => 'connection: close'
)
$original_image_size = false
$original_width = null
$original_height = null
$original_image_gd = false
$cropped_image_gd = false
$wm = false
CropsController::foto_admin() - APP/Controller/CropsController.php, line 234
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (2): Division by zero [APP/Controller/CropsController.php, line 248]Code Context elseif(($original_width < $original_height ) || ($original_width == $original_height ))
{
$adjusted_height = $original_height / $wm;
$id = 'Protección de obras audiovisuales'
$crop_height = null
$crop_width = null
$file_name = 'http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg'
$file_type = 'jpg'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad request',
(int) 1 => 'content-length: 90',
(int) 2 => 'cache-control: no-cache',
(int) 3 => 'content-type: text/html',
(int) 4 => 'connection: close'
)
$original_image_size = false
$original_width = null
$original_height = null
$original_image_gd = false
$cropped_image_gd = false
$wm = false
$hm = false
$h_height = (int) 0
$w_height = (int) 0
CropsController::foto_admin() - APP/Controller/CropsController.php, line 248
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (2): imagecopyresampled() expects parameter 1 to be resource, boolean given [APP/Controller/CropsController.php, line 252]Code Context $int_height = $half_height - $h_height;
//
imagecopyresampled($cropped_image_gd , $original_image_gd ,0,-$int_height,0,0, $crop_width, $adjusted_height, $original_width , $original_height );
$id = 'Protección de obras audiovisuales'
$crop_height = null
$crop_width = null
$file_name = 'http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg'
$file_type = 'jpg'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad request',
(int) 1 => 'content-length: 90',
(int) 2 => 'cache-control: no-cache',
(int) 3 => 'content-type: text/html',
(int) 4 => 'connection: close'
)
$original_image_size = false
$original_width = null
$original_height = null
$original_image_gd = false
$cropped_image_gd = false
$wm = false
$hm = false
$h_height = (int) 0
$w_height = (int) 0
$adjusted_height = false
$half_height = (int) 0
$int_height = (int) 0
imagecopyresampled - [internal], line ??
CropsController::foto_admin() - APP/Controller/CropsController.php, line 252
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (2): Cannot modify header information - headers already sent by (output started at /home/clients/cb43bd222d522993835b1aa3a4c37f51/web/lib/Cake/Utility/Debugger.php:801) [APP/Controller/CropsController.php, line 260]Code Context if($file_type=='jpg')
{
header ("Content-Type: image/jpeg");
$id = 'Protección de obras audiovisuales'
$crop_height = null
$crop_width = null
$file_name = 'http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg'
$file_type = 'jpg'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad request',
(int) 1 => 'content-length: 90',
(int) 2 => 'cache-control: no-cache',
(int) 3 => 'content-type: text/html',
(int) 4 => 'connection: close'
)
$original_image_size = false
$original_width = null
$original_height = null
$original_image_gd = false
$cropped_image_gd = false
$wm = false
$hm = false
$h_height = (int) 0
$w_height = (int) 0
$adjusted_height = false
$half_height = (int) 0
$int_height = (int) 0
header - [internal], line ??
CropsController::foto_admin() - APP/Controller/CropsController.php, line 260
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (2): imagejpeg() expects parameter 1 to be resource, boolean given [APP/Controller/CropsController.php, line 261]Code Context {
header ("Content-Type: image/jpeg");
return imagejpeg($cropped_image_gd);
$id = 'Protección de obras audiovisuales'
$crop_height = null
$crop_width = null
$file_name = 'http://wspanel.snconsult.com/img/photos/Protección de obras audiovisuales.jpg'
$file_type = 'jpg'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad request',
(int) 1 => 'content-length: 90',
(int) 2 => 'cache-control: no-cache',
(int) 3 => 'content-type: text/html',
(int) 4 => 'connection: close'
)
$original_image_size = false
$original_width = null
$original_height = null
$original_image_gd = false
$cropped_image_gd = false
$wm = false
$hm = false
$h_height = (int) 0
$w_height = (int) 0
$adjusted_height = false
$half_height = (int) 0
$int_height = (int) 0
imagejpeg - [internal], line ??
CropsController::foto_admin() - APP/Controller/CropsController.php, line 261
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108